package cn.wsh.org.service.impl;

import cn.wsh.basic.service.impl.BaseServiceImpl;
import cn.wsh.org.domain.Type;
import cn.wsh.org.mapper.TypeMapper;
import cn.wsh.org.service.ITypeService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName : TypeImpl
 * Author : "吴----"
 * @date : 2022/2/9 22:40
 */
@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class TypeServiceImpl extends BaseServiceImpl<Type> implements ITypeService {
    @Autowired
    private TypeMapper typeMapper;


    @Override
    public void remove(Long id) {
        super.remove(id);
        typeMapper.delete2();
    }


    @Override
    public void batch(List<Long> ids) {
        typeMapper.batch(ids);
    }




}
